home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr26 / netprog.zip / NETPROG.TAR / tftp / initvars.c < prev    next >
C/C++ Source or Header  |  1989-12-17  |  642b  |  29 lines

  1. /*
  2.  * Initialize the external variables.
  3.  * Some link editors (on systems other than UNIX) require this.
  4.  */
  5.  
  6. #include    "defs.h"
  7.  
  8. char    command[MAXTOKEN]    = { 0 };
  9. int    connected        = 0;
  10. char    hostname[MAXHOSTNAME]    = { 0 };
  11. int    inetdflag        = 1;
  12. int    interactive        = 1;
  13. jmp_buf    jmp_mainloop        = { 0 };
  14. int    lastsend        = 0;
  15. FILE    *localfp        = NULL;
  16. int    modetype        = MODE_ASCII;
  17. int    nextblknum        = 0;
  18. int    op_sent            = 0;
  19. int    op_recv            = 0;
  20. int    port            = 0;
  21. char    *prompt            = "tftp: ";
  22. char    recvbuff[MAXBUFF]    = { 0 };
  23. char    sendbuff[MAXBUFF]    = { 0 };
  24. int    sendlen            = 0;
  25. char    temptoken[MAXTOKEN]    = { 0 };
  26. long    totnbytes        = 0;
  27. int    traceflag        = 0;
  28. int    verboseflag        = 0;
  29.